<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Model;

class Flow extends Model
{
    public static $rules = [
        'name' => 'required|max:20',
    ];
    public static $message = [
        'name.required' => '流程名称必须填写',
        'name.max' => '流程名称最多20个字符',
    ];
    protected function getDateFormat()
    {
        return time();
    }
    protected $fillable = [
        'company_id', 'name',
    ];
}
